package 作业2;

import java.util.Scanner;

public class GradeConverter {

  public static void main(String[] args) {
    Scanner intput = new Scanner(System.in);

    System.out.print("请输入百分制成绩：");
    int score = intput.nextInt();

    String grade;

    switch (score / 10) {
      case 10:
      case 9:
        grade = "优秀";
        break;
      case 8:
        grade = "良好";
        break;
      case 7:
        grade = "中等";
        break;
      case 6:
        grade = "及格";
        break;
      default:
        grade = "不及格";
        break;
    }

    System.out.println("五级制成绩:" + grade);
    intput.close();
  }
}
